package com.lu.manage.modular.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Project sKnowledge_Blog
 * @Author: zhanglu
 * @Date: 2019-07-14 16:06:25
 * @Description: 数据源 实体类
 */
@Data
@Accessors(chain = true)
@TableName("sys_datasource")
public class Datasource extends Model<Datasource> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

   /**
    * 名称
    */
    @TableField("name")
    private String name;

   /**
    * url
    */
    @TableField("url")
    private String url;

   /**
    * 驱动
    */
    @TableField("driver")
    private String driver;

   /**
    * 用户名
    */
    @TableField("username")
    private String username;

   /**
    * 密码
    */
    @TableField("password")
    private String password;

   /**
    * 状态
    */
    @TableField("state")
    private Integer state;

   /**
    * 描述
    */
    @TableField("descript")
    private String descript;

}
